<?php
echo CHtml::errorSummary($model);
?>

<div style="clear: both;">
    <?php echo CHtml::beginForm('', 'post', array('class' => 'dot_form fw_50', 'enctype'=>'multipart/form-data')); ?>
    <fieldset>
        <legend><?php echo Yii::t('common', 'please_fill_table_contents'); ?></legend>
        <dl>
            <dt><?php echo CHtml::activeLabelEx($model, 'file_name'); ?></dt>
            <dd>
                <div>
                    <?php
                    echo CHtml::activeTextField($model, 'file_name', array(
                        'maxlength' => 200,
                        'class' => 'large'
                        ));
                    ?>
                </div>
                <?php echo CHtml::error($model, 'file_name'); ?>
            </dd>
            <dt><?php echo CHtml::activeLabelEx($model, 'file_saved_path'); ?></dt>
            <dd>
                <div>
                    <?php
                    echo CHtml::activeFileField($model, 'file_saved_path', array(
                        'maxlength' => 200,
                        'class' => 'large'
                        ));
                    ?>
                </div>
                <?php echo CHtml::error($model, 'file_saved_path'); ?>
            </dd>
            <dt></dt>
            <dd>
                <?php
                echo CHtml::submitButton($update
                    ? Yii::t('common', 'update') : Yii::t('common', 'save'), array(
                    'class' => 'btn'
                ));
                ?>
            </dd>
        </dl>
    </fieldset>
    <?php echo CHtml::endForm(); ?>
</div>